import NiuBi from './NiuBi'
const components = [
  NiuBi
]
const install = function (Vue) {
    // 判断组件是否安装
  if (install.installed) return
  install.installed = true
    components.forEach(component => {
      Vue.component(component.name, component)
    })
}
// 检查vue是否安装，满足才执行
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}
export default {
  install,
  ...components//组件也一样要暴露
}
